<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:1px;">
  <t:datagrid name="invoiceList" checkbox="true" fitColumns="false" title="invoice" actionUrl="invoiceController.do?datagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="主键"  field="id"  hidden="false"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="流水号"  field="serialNumber"  hidden="true" query="true" queryMode="single"  width="130"></t:dgCol>
   <t:dgCol title="发票额度"  field="invoiceAmount"  hidden="true"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="发票抬头"  field="invoiceTitle"  hidden="true"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="纳税人识别号"  field="identifyNumber"  hidden="true"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="收件人"  field="receiverName"  hidden="true" query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="收件人手机号"  field="receiverMobile"  hidden="true" query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="所在地区"  field="area"  hidden="true"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="详细地址"  field="detailAddress"  hidden="true"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="发票状态 "  field="invoiceStatu"  hidden="true" query="true" queryMode="single"  width="120" replace="已提交_1,取消_2,已开票_3,已邮寄_4"></t:dgCol>
   <t:dgCol title="快递单号"  field="deliveryNo"  hidden="true" query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="是否有效"  field="validFlag"  hidden="false"  queryMode="group"  width="120" replace="无效_0,有效_1"></t:dgCol>
   <t:dgCol title="用户名"  field="userMobile"  hidden="true" query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="创建时间"  field="createDate" hidden="true" formatter="yyyy-MM-dd hh:mm:ss"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="修改时间"  field="updateDate" hidden="true" formatter="yyyy-MM-dd hh:mm:ss"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="操作" field="opt" width="100"></t:dgCol>
   <t:dgDelOpt title="删除" url="invoiceController.do?doDel&id={id}" />
   <t:dgToolBar title="编辑" icon="icon-edit" url="invoiceController.do?goUpdate" funname="update"></t:dgToolBar>
   <t:dgToolBar title="批量删除"  icon="icon-remove" url="invoiceController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>
   <t:dgToolBar title="查看" icon="icon-search" url="invoiceController.do?goUpdate" funname="detail"></t:dgToolBar>
  </t:datagrid>
  </div>
 </div>
 <script src = "webpage/com/group/invoice/invoiceList.js"></script>		
 <script type="text/javascript">
 $(document).ready(function(){
 		//给时间控件加上样式
 			$("#invoiceListtb").find("input[name='createDate_begin']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 			$("#invoiceListtb").find("input[name='createDate_end']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 			$("#invoiceListtb").find("input[name='updateDate_begin']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 			$("#invoiceListtb").find("input[name='updateDate_end']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 });
 </script>